package base

import (
	"gorm.io/gorm"
	"time"
)

type BaseEntity struct {
	ID uint64 `gorm:"primarykey"` // 主键ID
	//CreatedAt time.Time      // 创建时间
	//UpdatedAt time.Time      // 更新时间
	//DeletedAt gorm.DeletedAt `gorm:"index" json:"-"` // 删除时间

	CreatedAt time.Time      `json:"created_at"`
	UpdatedAt time.Time      `json:"updated_at"`
	DeletedAt gorm.DeletedAt `json:"deleted_at"`
}

type PageEntity struct {
	PageIndex int `json:"pageIndex"   form:"pageIndex" `
	PageSize  int `json:"pageSize"    form:"pageSize" `
}
